<nav class="navbar navbar-default top-navbar" role="navigation">
        <div class="navbar-header">
            <a class="navbar-brand" href="index.html"><i class="fa fa-gear"></i> <strong>管理员</strong></a>
        </div>
        <ul class="nav navbar-top-links navbar-right">
            <li class="dropdown" (click)="toggleForm()" [className]="isClosed ? 'dropdown' : 'dropdown open'">
                <a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                    <i class="fa fa-user1 fa-fw"></i> <i class="fa fa-caret-down" id="fa-caret-down" [className]="isClosed ? 'fa fa-caret-down' : 'fa fa-caret-up'"></i>
                </a>
                <ul class="dropdown-menu dropdown-user">
                    <li style="padding: 4px 0 4px 0"><a href="#"><i class="fa fa-user2 fa-fw"></i> 个人主页</a>
                    </li>
                    <li style="padding: 4px 0 4px 0"><a href="#"><i class="fa fa-gear fa-fw"></i> 设置</a>
                    </li>
                    <li class="divider" style="padding: 0;margin: 0"></li>
                    <li style="padding: 4px 0 4px 0"><a href="#" onclick="logout()"><i class="fa fa-sign-out fa-fw"></i> 退出登录</a>
                    </li>
                </ul>
                <!-- /.dropdown-user -->
            </li>
            <!-- /.dropdown -->
        </ul>
    </nav>

